/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gradius.InterfaceGrafica;

import java.awt.Toolkit;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.swing.JFrame;

/** Classe que cria a janela de Menu do jogo
 *
 * @author Eduardo
 */
public class Menu extends JFrame
{
    /** Construtor da classe Menu
     *
     * @throws FileNotFoundException - Exceção de arquivo não encontrado
     * @throws IOException - Exceção de IO
     */
    public Menu() throws FileNotFoundException, IOException
    {
        PainelMenu painel = new PainelMenu(this);
        this.setSize(787,600);
        this.setLocation((int)(Toolkit.getDefaultToolkit().getScreenSize().width/2) - 393, (int)(Toolkit.getDefaultToolkit().getScreenSize().height/2) - 300);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setResizable(false);
        this.setTitle("Gradius vs R-Type");
        this.getContentPane().add(painel);
        this.setVisible(true);
    }
}
